package com.gnerv.pabu.basic.core.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gnerv.pabu.basic.core.dto.NoticeDTO;
import com.gnerv.pabu.basic.core.dto.NoticeSaveDTO;
import com.gnerv.pabu.basic.core.dto.NoticeSearchDTO;
import com.gnerv.pabu.basic.core.entity.Notice;

/**
 * 基础平台-通知公告表(ManageNotice)表服务接口
 *
 * @author makejava
 * @since 2020-03-04 23:01:03
 */
public interface INoticeService extends IService<Notice> {

    boolean saveNotice(NoticeSaveDTO noticeSaveDTO);

    boolean createNotice(NoticeSaveDTO noticeSaveDTO);

    boolean deleteByNoticeId(String noticeId);

    boolean updateNotice(NoticeSaveDTO noticeSaveDTO);

    boolean updateNoticeStatus(String noticeId, Integer status);

    NoticeDTO selectByNoticeId(String noticeId);

    Page<NoticeDTO> listNotice(NoticeSearchDTO notice, Long current, Long size);
}